/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sd.chat.web;

import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;

/**
 *
 * @author Old
 */
public class ChatChannel implements Comparable<String> {
    
    public String name;
    public final Set<HTTPBridge.ChatMessageInbound> connections = new CopyOnWriteArraySet<HTTPBridge.ChatMessageInbound>();

    public ChatChannel(String name) {
        this.name = name;
    }

    @Override
    public int compareTo(String o) {
        return name.compareTo(o);
    }
    
    
}
